<?php

require __DIR__ . '/template.inc.php';

$_name = 'wold';
$_content = 'this is a test';
$_array = array(1,2,3,4,5,6,7);

$_tpl->assign('name', $_name);
$_tpl->assign('content', $_content);
$_tpl->assign('a', 5<4);
$_tpl->assign('array', $_array);

// 载入tpl文件
$_tpl->display('index.tpl');

?>